<template>
    <div class="box">
        <header class="header">
            <van-search show-action placeholder="请输入搜索关键词" @click-input="$router.push('/search')">
                <template #left>
                    <van-icon name="apps-o" size="24" @click="$router.push('/kind')" />
                </template>
                <template #action>
                    <van-icon name="friends-o" size="24" @click="$router.push('/search')" />
                    <!-- <router-link to="/search"><van-icon name="friends-o" size="24" /></router-link> -->
                </template>
            </van-search>
        </header>
        <div class="content">
            <van-swipe :autoplay="3000" lazy-render>
                <van-swipe-item v-for="image in images" :key="image">
                    <img :src="image" style="height:200px;width:100%;" />
                </van-swipe-item>
            </van-swipe>
            <van-grid>
                <van-grid-item :icon="require('@/assets/logo.png')" text="文字" />
                <van-grid-item icon="photo-o" text="文字" />
                <van-grid-item icon="photo-o" text="文字" />
                <van-grid-item icon="photo-o" text="文字" />
            </van-grid>
            <ProList />
        </div>
    </div>
</template>
<script setup>
import ProList from './components/ProList.vue'
const images = [
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg',
    require('@/assets/logo.png')
];

</script>